package com.xdxc.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xdxc.utils.CustomDeserializer;
import com.xdxc.utils.JsonTypeHandler;
import com.xdxc.utils.LongListToStringSerializer;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

@Data
public class UserAnswerDto implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    @NotNull(message = "试卷ID不能为空")
    private Long paperId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long quId;
    private Integer answerType;
    @TableField(typeHandler = JsonTypeHandler.class)
    @JsonSerialize(using = LongListToStringSerializer.class)
    @JsonDeserialize(using = CustomDeserializer.class)
    private List<Long> answerIds;
    private String answerText;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long checkId;
    private Long userId;
    private int version;
    private  String uuId;
    private Long examId;

    private long bornTimestamp;



}